package cn.kgc.gmall.service;

import cn.kgc.gmall.mapper.VisitorStatsMapper;
import cn.kgc.gmall.pojo.KeywordStats;
import cn.kgc.gmall.pojo.VisitorStats;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VisitorStatsServiceImpl implements VisitorStatsService {

    @Autowired
    private VisitorStatsMapper visitorStatsMapper;
    @Override
    public List<VisitorStats> getVisitorStatsIsNew(Integer date) {
        return visitorStatsMapper.getVisitorStatsIsNew(date);
    }

    @Override
    public List<VisitorStats> getMidStatsGroupbyHourNewFlag(Integer date) {
        return visitorStatsMapper.getMidStatsGroupbyHourNewFlag(date);
    }

    @Override
    public List<KeywordStats> getKeyword(Integer date, Integer limit) {
        return visitorStatsMapper.getKeyword(date,limit);
    }
}
